package cn.kgc.service;

import cn.kgc.dao.DetailMapper;
import cn.kgc.pojo.Detail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DetailServiceImpl implements  DetailService {

    @Resource
    DetailMapper detailMapper;

//查询所有并模糊查询
    @Override
    public List<Detail> select(Integer projectId) {
        return detailMapper.select(projectId);
    }
//增加
    @Override
    public int add(Detail detail) {
        return detailMapper.add(detail);
    }
}
